Get

Function

This API is used to get month playback data for a specified date.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
channel“CH1”…”CH1x”,
“IP_CH1”…” IP_CH1x”,
“WIFI_CH1”…” WIFI_CH1x”,

The number of channels depends on the capabilities of the device
string arrayEach array bit represents a channel with a string.
(An empty array means that all channels are searched)
search_type"Record",
"Picture",
"FD",
"PVD",
"PidLcd",
"Repeat",
"FaceAttendance"
stringMonthly search type
start_datestringSearch startdate.
The date format is MM/DD/YYYY
stream_type"Mainstream",
"Substream"
stringStream type

Sample:

POST /API/Playback/SearchMonth/Get HTTP/1.1
{
	"version": "1.0",
	"data": {
		"channel": [],
		"stream_type": "Substream",
		"start_date": "05/31/2023",
		"search_type": "Record"
	}
}

Response Message

Parameter Description

Table 2

ParameterRangeTypeDescription
is_has_recint array
record_typeint array

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
	"version": "1.0",
	"result": "success",
	"data": {
		"is_has_rec": [
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0
		],
		"record_type": [
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0,
			0
		]
	}
}

Error Code

See Response Messages Body and Common error_code for more information.